<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSTeacherInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('s_teacher_info', function (Blueprint $table) {
            $table->increments('id');

            $table->string('name')->comment("外教名称")->index();
            $table->string('headimg')->comment("头像");
            $table->integer('type')->comment("老师类型");

            $table->string('tags_zh_cn')->comment("标签，多个标签用英文逗号分开,中文");
            $table->string('tags_en')->comment("标签，多个标签用英文逗号分开，英文");

            $table->string('certification_zh_cn')->comment("证书，多个证书用英文逗号分开,中文");            
            $table->string('certification_en')->comment("证书，多个证书用英文逗号分开，英文");

            $table->text('desc_zh_cn')->comment("中文简介");
            $table->text('desc_en')->comment("英文简介");
            $table->string('desc_voice')->comment("录音简介");
            $table->integer('score_num')->comment("金币")->default(0);

            $table->timestamps();
            $table->SoftDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
